package com.szcinda.call.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface OrderDetailRepository extends JpaRepository<OrderDetail, String>, JpaSpecificationExecutor<OrderDetail> {
    OrderDetail findByBookingNumberAndUserName(String bookingNumber, String userName);

    OrderDetail findByPickingNumberAndUserName(String pickingNumber, String userName);

    OrderDetail findByBookingNumberAndPickingNumberAndUserName(String bookingNumber, String pickingNumber, String userName);
}
